package cfdt.ldl.file.service;

import cfdt.common.vo.ObjectBaseResponse;
import cfdt.ldl.file.api.request.DownloadFileRequest;
import cfdt.ldl.file.api.request.UploadFileRequest;
import cfdt.ldl.file.api.response.DownloadFileResponse;
import cfdt.ldl.file.api.response.UploadFileResponse;
import org.springframework.stereotype.Service;

@Service
public class FileService {

    /**
     * 根据ID获取文件
     *
     * @param request
     * @return
     */
    public ObjectBaseResponse<DownloadFileResponse> downloadFile(DownloadFileRequest request) {
        // todo something
        return null;
    }

    /**
     * 上传文件获得ID
     *
     * @param request
     * @return
     */
    public ObjectBaseResponse<UploadFileResponse> uploadFile(UploadFileRequest request) {
        // todo something
        return null;
    }
}
